/* 1. VARIABLES & RESET*/
:root {
    --primary: #7093c4;
    --dark: #0a0a0a;
    --light: #ffffff;
    --accent: #7093c4; 
}

/* Normalisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hauteur 100% pour html et body */
html, body {
    height: 100%;
}

/* Body : Image de fond et Flexbox pour le footer */
body {
    font-family: Arial, sans-serif;
    color: var(--light);
    background: url("/Site WEB/images/imagefond2.jpg") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

/*HEADER et NAVIGATION*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo {
    font-weight: bold;
}

nav a {
    color: var(--light);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--primary);
}

/*3. CONTENU GÉNÉRAL (MAIN) */
.content {
    flex: 1;
    padding: 8rem 2rem 4rem;
    max-width: 800px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.content h1,
h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.content p,
ul {
    line-height: 1.6;
}

/* Liens spécifiques dans le texte */
.content ul li a {
    color: var(--accent); 
    text-decoration: underline;
    font-weight: bold;
}

.content ul li a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* COMPOSANTS (BOUTONS & IMAGES) */

/* Bouton principal (dégradé bleu) */
.btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(90deg, #007bff, #00bfff);
    border: none;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    box-shadow: 0 0 0px rgba(0, 191, 255, 0.4);
}

.btn:hover {
    transform: translateY(-3px) scale(1.25);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.7);
    background: linear-gradient(90deg, #00bfff, #007bff);
}

/* Images & Lightbox (Galerie) */
.image-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: 10px;
}

.image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    border-radius: 10px;
    cursor: zoom-in;
}

.image-container:hover img {
    transform: scale(1.06);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    cursor: zoom-out;
}

.lightbox:target {
    display: flex;
}

.lightbox .close {
    position: absolute;
    inset: 0;
    background: transparent;
}

/* 5. PAGE ACCUEIL (HERO)*/
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px black;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    text-shadow: 1px 1px 4px black;
}

/* PAGE À PROPOS*/
.apropos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-card {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 3rem; 
    background: rgba(255, 255, 255, 0.05); 
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 850px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Photo de profil */
.profile-image-wrapper {
    flex-shrink: 0; 
}

.profile-pic {
    width: 200px; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 50%; 
    border: 5px solid var(--primary); 
    box-shadow: 0 0 25px rgba(55, 104, 172, 0.4); 
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05) rotate(3deg); 
    border-color: var(--accent);
}

/*Texte de présentation */
.profile-text {
    text-align: left; 
}

.profile-text h2 {
    color: var(--light);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.profile-text .subtitle {
    color: var(--accent); 
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*Badges Compétences */
.skills-preview h3 {
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 1rem;
    text-transform: uppercase;
}

.badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badges span {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/*Section Strava */
.strava-box {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

.strava-box p {
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #ccc;
}

.btn-strava {
    display: inline-flex;
    align-items: center;
    gap: 10px; 
    padding: 10px 20px;
    background-color: #FC4C02; 
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-strava:hover {
    background-color: #e34302; 
    transform: translateY(-2px);
    color: white;
}

.strava-icon {
    height: 24px; 
    width: auto;
    filter: brightness(0) invert(1); 
}

/*FOOTER*/
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
    gap: 1.5rem;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h3 {
    color: #00bfff;
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: #00bfff;
}

.footer-bottom {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


/* RESPONSIVE (MOBILE)*/
@media (max-width: 768px) {
    /* Accueil */
    .hero h1 {
        font-size: 2.2rem;
    }

    nav a {
        font-size: 1rem;
    }

    /* Page À propos */
    .profile-card {
        flex-direction: column; 
        text-align: center;
        gap: 1.5rem;
    }

    .profile-text {
        text-align: center; 
    }

    .profile-pic {
        width: 150px; 
        height: 150px;
    }
}